﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace Utils.Data
{
    /// <summary>
    /// Summary description for MetaDataConverter
    /// </summary>
    public class MetaDataConverter
    {

        public static bool MetaDsToMetaDsOrg(ref DataTable dt)
        {

            foreach (DataRow dr in dt.Rows)
            {
                string Line = dr[0].ToString().Trim();
                // we are looking for parameters and special comments before "AS"
                if (Line.ToLower().StartsWith("create"))
                    continue;
                if (Line.ToLower().StartsWith("as"))
                    return (true);
                if (Line.Length == 0)
                    continue;
                if (Line[0] == '@')
                {
                    Utils.Debugger.WriteIf(" I saw the following parameter line " + Line);
                } //eof if 

            } //eof foreach row in dt
            return true;
        }//eof method








    } //eof class MetaDataConverter

} //eof namespace Utils.Data